import React, { Component } from 'react'
import CartList from '../components/cartlist';
import { connect } from 'react-redux';
export class Cart extends Component {
    render() {
        return (
            <div>
                cart
                <CartList {...this.props}></CartList>
            </div>
        )
    }
}


const mapStateToProps = (state) => {
    return {
        ...state
    }
}

const mapDispatchToProps = (dispatch) => {
    return {

        setList(data) {
            dispatch({ type: "SET_LIST", data: data })
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(CartList)